package com.icas.entity.databaseentity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

/**
 * @Author: tocchen
 * @Date: 2022/4/18 18:49
 * @Description: User数据集合映射类
 **/
@Data
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class AccountEntity {

    private String id;

    private String account;

    private String name;

    private String school;

    @Field("class")
    private String classInfo;

    private String batch;

    private String major;

    private String gender;

    private String role;

    @Field("passcode")
    private String password;

    private String salt;

    private List<CourseEntity> courses;

}
